public enum PoolType extends Enum<PoolType>
Enum Constant and Description |
---|
ANALYSIS_POOL
- multi-threaded - executed concurrent to server thread - sequential to each other (new tasks are only submitted if thread pool idling to exploit full parallelism) Make sure there are no side-effects to global state.
|
FAST_TRACK_ANALYSIS_POOL
- single-threaded - executed concurrent to server thread - concurrent to each other Make sure there are no side-effects to global state.
|
IO_POOL
- multi-threaded - executed concurrent to server thread - sequential to each other (new tasks are only submitted if thread pool idling to exploit full parallelism) Make sure there are no side-effects to global state.
|
SERVER_THREAD
- single-threaded - executed sequentially on server thread SERVER_THREAD tasks should be really quick, as they block the server thread.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
toString()
Alias for
getName() |
static PoolType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PoolType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final PoolType ANALYSIS_POOL
public static final PoolType FAST_TRACK_ANALYSIS_POOL
public static final PoolType IO_POOL
public static final PoolType SERVER_THREAD
public String getName()
public static PoolType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PoolType[] values()
for (PoolType c : PoolType.values()) System.out.println(c);
Copyright © 2015. All rights reserved.